* $wgActiveUserDays is that number of days
* $wgRateLimitsExcludedGroups has been deprecated in favor of
$wgGroupPermissions[]['noratelimit']. The former still works, however.
+* New $wgGroupPermissions option 'move-subpages' added to control bulk-moving
+ subpages along with pages. Assigned to 'user' and 'sysop' by default.
=== New features in 1.13 ===
// Implicit group for all logged-in accounts
$wgGroupPermissions['user' ]['move'] = true;
+$wgGroupPermissions['user' ]['move-subpages'] = true;
$wgGroupPermissions['user' ]['read'] = true;
$wgGroupPermissions['user' ]['edit'] = true;
$wgGroupPermissions['user' ]['createpage'] = true;
$wgGroupPermissions['sysop']['import'] = true;
$wgGroupPermissions['sysop']['importupload'] = true;
$wgGroupPermissions['sysop']['move'] = true;
+$wgGroupPermissions['sysop']['move-subpages'] = true;
$wgGroupPermissions['sysop']['patrol'] = true;
$wgGroupPermissions['sysop']['autopatrol'] = true;
$wgGroupPermissions['sysop']['protect'] = true;
);
}
- if( $ot->hasSubpages() || $ot->getTalkPage()->hasSubpages() ) {
+ if( ($ot->hasSubpages() || $ot->getTalkPage()->hasSubpages())
+ && $ot->userCan( 'move-subpages' ) ) {
$wgOut->addHTML( "
<tr>
<td></td>
$this->moveTalk = false;
}
+ if( !$ot->userCan( 'move-subpages' ) ) {
+ $this->moveSubpages = false;
+ }
+
# Next make a list of id's. This might be marginally less efficient
# than a more direct method, but this is not a highly performance-cri-
# tical code path and readable code is more important here.
'right-createaccount' => 'Create new user accounts',
'right-minoredit' => 'Mark edits as minor',
'right-move' => 'Move pages',
+'right-move-subpages' => 'Move pages with their subpages',
'right-suppressredirect' => 'Not create a redirect from the old name when moving a page',
'right-upload' => 'Upload files',
'right-reupload' => 'Overwrite an existing file',
'right-createaccount',
'right-minoredit',
'right-move',
+ 'right-move-subpages',
'right-suppressredirect',
'right-upload',
'right-reupload',